package cate.game.role.pvp.arena.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBArena;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "跨服擂台赛-设置跳过战斗 请求")
public class ArenaChangeSkipReq implements MsgInput {
    @NoteField("是否跳过战斗")
    public boolean skipFight;

    @Override
    public MsgConfig conf() {
        return MsgIdBArena.CHANGE_SKIP_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getPvp().arena.skipFight = skipFight;
        cc.getRole().getPvp().arena.noticeUpdate();
    }
}
